package com.trendit.print.sdk.models.printer;

import com.trendit.print.sdk.DaquObject;
import com.trendit.print.sdk.DaquRequest;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 查询打印机状态
 */
public class GetPrinterStatusRequest implements DaquRequest<GetPrinterStatusResponse> {

    private DaquObject bizModel;

    /**
     * 构造方法
     * @param bizModel
     */
    public GetPrinterStatusRequest(GetPrinterStatusRequest.Model bizModel) {
        this.bizModel = bizModel;
    }

    @Override
    public String getApiMethodName() {
        return "openapi.getPrinterStatus";
    }

    @Override
    public String getApiVersion() {
        return "1.0";
    }

    @Override
    public String getNotifyUrl() {
        return null;
    }

    @Override
    public String getApiMethodURL() {
        return "/openapi/get_printer_status";
    }

    @Override
    public Class<GetPrinterStatusResponse> getResponseClass() {
        return GetPrinterStatusResponse.class;
    }

    @Override
    public DaquObject getBizModel() {
        return bizModel;
    }

    @Override
    public String getBizContent() {
        return null;
    }

    @Data
    public static class Model extends DaquObject {
        /**
         * 设备编码
         */
        @NotNull
        private String sn;

    }
}
